package com.study.dao;

import java.util.List;

import com.google.inject.persist.Transactional;
import com.study.domain.Docu;

public class DocuDao extends BaseDao {
	@Transactional
	public void insert(Docu docu)
	{
		em().persist(docu);
	}
	
	public List<Docu> findAll() {
		return em().createQuery("from Docu").getResultList();
	}
}
